<template>
    学生姓名：{{studentName}}<br>
    Vue成绩：{{grode.Vue}}<br>
    jQuery成绩：{{grode.jQuery}}
</template>

<script>
import { reactive, toRefs, inject } from 'vue'

export default {
    setup () {
        const state = reactive({
            count: 0
        })
        const studentName = inject('studentName', '张二')
        const grode = inject('grode')

    return {
        ...toRefs(state),
        studentName,
        grode
    }
    
    }
}
</script>
